#include <stdio.h>
#include "myDataStruct.h"


int main()
{
    int32_t ii;
    int32_t elem=10;
    int32_t rank;
    SlNode_t* out;
    SlList_t* sl=createSlList();

    if(sl==NULL) return -1;
    for(ii=0;ii<10;ii++)
    {
        insertNodeSl(sl,ii+10,&elem);
    }
    deletNodeSl(sl,sl->head->level[1].forward);
    printSl(sl);

    out=serchSl(sl,12,GE);
    if(out==NULL)
        printf("no find\n");
    else
        printf("find %d\n",out->score);

    RangeSerchSl(sl,20,20);
    rank=rankSerchSl(sl,3,GE);
    printf("rank %d\n",rank);

    freeSlList(sl);
    return 0;
}
